<?php
$task_id=$_GET['Task_id'];
$dsn = "sqlsrv:Server=localhost;Database=Task";
$db = new PDO($dsn, "sa", "123456");
$sql="update Task set TaskStatus='2',TaskUpdateTime=getdate() where TaskId='{$task_id}'";
$result = $db->exec($sql);


if ($result){
    echo "修改成功,前往<a href='task_list.php'>列表页</a>";
}else{
    echo "修改失败,前往<a href='task_list.php'>列表页</a>";
}
